﻿--use PolePosition
GO

IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'up_UtilityAssetXMissionStructures_SelectIdList')
	DROP PROCEDURE up_UtilityAssetXMissionStructures_SelectIdList
GO

CREATE PROCEDURE up_UtilityAssetXMissionStructures_SelectIdList
	 @UtilityFk int 
	,@SearchByType varchar(50) = null
	,@SearchByText varchar(50) = null
AS

SET NOCOUNT ON	



DECLARE @IdList varchar(MAX)
SET @IdList = ''

SELECT 
	 @IdList = @IdList + CONVERT(varchar, [Utility_Asset_XMissionStructureId]) + ','
FROM v_tb_Utility_Asset_XMissionStructures Structure
WHERE UtilityFk = @UtilityFk

SELECT @IdList


GO
 